<template>
  <div class="dashboard-container">
    <div class="dashboard-text" v-if="name === 'admin'">
      尊敬的管理员！您好,欢迎您使用工资管理系统
    </div>
    <div class="dashboard-text" v-else>
      尊敬的用户！您好,欢迎您使用工资管理系统
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex';

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters(['name']),
  },
};
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
